- Vehicle CREATE_VEHICLE(Hash modelHash, float x, float y, float z, float heading, BOOL networkHandle, BOOL vehiclehandle) // AF35D0D2583051B0 DD75460A
If last bool = true it will return a handle
- void DELETE_VEHICLE(Vehicle *vehicle) // EA386986E786A54F 9803AF60
Deletes a vehicle.
the vehicle cant be a mission entity to delete, so call this before deleting SET_ENTITY_AS_MISSION_ENTITY(vehicle, false, true);
From: /u/amoshydra
The vehicle have to be set as mission entity. Otherwise this will not work. Take note that DELETE_VEHICLE() takes in a pointer. Example
ENTITY::SET_ENTITY_AS_MISSION_ENTITY(veh, true, false);
VEHICLE::DELETE_VEHICLE(&veh);
Check http://gtaforums.com/topic/789907-vrel-community-script-hook-v-net/?p=1067490925
- void _0x7D6F9A3EF26136A0(Vehicle vehicle, BOOL p1) // 7D6F9A3EF26136A0 BB54ECCA
- void SET_VEHICLE_ALLOW_NO_PASSENGERS_LOCKON(Vehicle veh, BOOL p1) // 5D14D4154BFE7B2C 8BAAC437
- int _0xE6B0E8CFC3633BF0(Vehicle vehicle) // E6B0E8CFC3633BF0 FBDE9FD8
- BOOL IS_VEHICLE_MODEL(Vehicle vehicle, Hash hash) // 423E8DE37D934D89 013B10B6
if (VEHICLE::IS_VEHICLE_MODEL(rPtr(A_1), 0xC703DB5F) != 0)
- BOOL DOES_SCRIPT_VEHICLE_GENERATOR_EXIST(Any vehicleGenerator) // F6086BC836400876 F6BDDA30
Found : TransmetTeam & not xevious117
- Any CREATE_SCRIPT_VEHICLE_GENERATOR(float x, float y, float z, float heading, float p4, float p5, Hash modelHash, int p7, int p8, int p9, int p10, BOOL p11, BOOL p12, BOOL p13, BOOL p14, BOOL p15, int p16) // 9DEF883114668116 25A9A261
Creates a script vehicle generator at the given coordinates. Most parameters after the model hash are unknown.
Parameters:
x/y/z - Generator position
heading - Generator heading
p4 - Unknown (always 5.0)
p5 - Unknown (always 3.0)
modelHash - Vehicle model hash
p7/8/9/10 - Unknown (always -1)
p11 - Unknown (usually TRUE, only one instance of FALSE)
p12/13 - Unknown (always FALSE)
p14 - Unknown (usally FALSE, only two instances of TRUE)
p15 - Unknown (always TRUE)
p16 - Unknown (always -1)
- void DELETE_SCRIPT_VEHICLE_GENERATOR(Any vehicleGenerator) // 22102C9ABFCF125D E4328E3F
- void SET_SCRIPT_VEHICLE_GENERATOR(Any vehicleGenerator, BOOL enabled) // D9D620E0AC6DC4B0 40D73747
Only called once in the decompiled scripts. Presumably activates the specified generator.
- void SET_ALL_VEHICLE_GENERATORS_ACTIVE_IN_AREA(float x1, float y1, float z1, float x2, float y2, float z2, BOOL p6, BOOL p7) // C12321827687FE4D B4E0E69A
- void SET_ALL_VEHICLE_GENERATORS_ACTIVE() // 34AD89078831A4BC AB1FDD76
- void SET_ALL_LOW_PRIORITY_VEHICLE_GENERATORS_ACTIVE(BOOL active) // 608207E7A8FB787C 87F767F2
- void _0x9A75585FB2E54FAD(float p0, float p1, float p2, float p3) // 9A75585FB2E54FAD 935A95DA
- void _0x0A436B8643716D14() // 0A436B8643716D14 6C73E45A
- BOOL SET_VEHICLE_ON_GROUND_PROPERLY(Vehicle vehicle) // 49733E92263139D1 E14FDBA6
Sets a vehicle on the ground on all wheels. Returns whether or not the operation was successful.
- Any SET_ALL_VEHICLES_SPAWN(Any p0, Any p1, Any p2, Any p3) // E023E8AC4EF7C117 A0909ADB
- BOOL IS_VEHICLE_STUCK_ON_ROOF(Vehicle vehicle) // B497F06B288DCFDF 18D07C6C
- void ADD_VEHICLE_UPSIDEDOWN_CHECK(Vehicle vehicle) // B72E26D81006005B 3A13D384
- void REMOVE_VEHICLE_UPSIDEDOWN_CHECK(Vehicle vehicle) // C53EB42A499A7E90 F390BA1B
- BOOL IS_VEHICLE_STOPPED(Vehicle vehicle) // 5721B434AD84D57A 655F072C
- int GET_VEHICLE_NUMBER_OF_PASSENGERS(Vehicle vehicle) // 24CB2137731FFE89 1EF20849
- int GET_VEHICLE_MAX_NUMBER_OF_PASSENGERS(Vehicle vehicle) // A7C4F2C6E744A550 0A2FC08C
- int _GET_VEHICLE_MODEL_MAX_NUMBER_OF_PASSENGERS(Hash VehicleModel) // 2AD93716F184EDA4 838F7BF7
- BOOL _0xF7F203E31F96F6A1(Vehicle vehicle, int i1) // F7F203E31F96F6A1 769E5CF2
- BOOL _0xE33FFA906CE74880(Vehicle vehicle, Any p1) // E33FFA906CE74880
- void SET_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME(float multiplier) // 245A6883D966D537 F4187E51
- void SET_RANDOM_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME(float multiplier) // B3B3359379FE77D3 543F712B
- void SET_PARKED_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME(float multiplier) // EAE6DCC7EEE3DB1D DD46CEBE
- void _0xD4B8E3D1917BC86B(BOOL p0) // D4B8E3D1917BC86B 09462665
- void _0x90B6DA738A9A25DA(float p0) // 90B6DA738A9A25DA DAE2A2BE
- void SET_FAR_DRAW_VEHICLES(BOOL toggle) // 26324F33423F3CC3 9F019C49
- void SET_NUMBER_OF_PARKED_VEHICLES(int value) // CAA15F13EBD417FF 206A58E8
- void SET_VEHICLE_DOORS_LOCKED(Vehicle hash, int doorLockStatus) // B664292EAECF7FA6 4CDD35D0
- void SET_PED_TARGETTABLE_VEHICLE_DESTROY(Vehicle vehicle, int vehicleComponent, int destroyType) // BE70724027F85BCD D61D182D
destroyType is 1 for opens on damage, 2 for breaks on damage.
- void DISABLE_VEHICLE_IMPACT_EXPLOSION_ACTIVATION(Vehicle vehicle, BOOL toggle) // D8050E0EB60CF274 C54156A9
looks like hash collision
- void SET_VEHICLE_DOORS_LOCKED_FOR_PLAYER(Vehicle vehicle, int door, BOOL toggle) // 517AAF684BB50CD1 49829236
- BOOL GET_VEHICLE_DOORS_LOCKED_FOR_PLAYER(Vehicle vehicle, int door) // F6AF6CB341349015 1DC50247
- void SET_VEHICLE_DOORS_LOCKED_FOR_ALL_PLAYERS(Vehicle vehicle, BOOL toggle) // A2F80B8D040727CC 891BA8A4
After some analysis, I've decided that these are what the parameters are.
We can see this being used in R* scripts such as "am_mp_property_int.ysc.c4":
l_11A1 = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), 1);
...
VEHICLE::SET_VEHICLE_DOORS_LOCKED_FOR_ALL_PLAYERS(l_11A1, 1);
- Shawn
- void _0x9737A37136F07E75(Vehicle veh, BOOL p1) // 9737A37136F07E75 E4EF6514
- void SET_VEHICLE_DOORS_LOCKED_FOR_TEAM(Vehicle vehicle, int door, BOOL toggle) // B81F6D4A8F5EEBA8 4F85E783
- void EXPLODE_VEHICLE(Vehicle vehicle, BOOL isAudible, BOOL isInvisible) // BA71116ADF5B514C BEDEACEB
- void SET_VEHICLE_OUT_OF_CONTROL(Vehicle vehicle, BOOL p1, BOOL p2) // F19D095E42D430CC 3764D734
- void SET_VEHICLE_TIMED_EXPLOSION(Vehicle vehicle, Ped ped, BOOL toggle) // 2E0A74E1002380B1 DB8CB8E2
VEHICLE::SET_VEHICLE_TIMED_EXPLOSION(num4, PLAYER::GET_PLAYER_PED(num6), 1);
- void _0x99AD4CCCB128CBC9(Any p0) // 99AD4CCCB128CBC9 811373DE
- Any _0x6ADAABD3068C5235() // 6ADAABD3068C5235 A4E69134
- void _0xEF49CF0270307CBE() // EF49CF0270307CBE 65255524
- BOOL _0xAE3FEE8709B39DCB(Any p0) // AE3FEE8709B39DCB E39DAF36
- void SET_TAXI_LIGHTS(Vehicle vehicle, BOOL state) // 598803E85E8448D9 68639D85
This is not tested - it's just an assumption.
- Nac
Doesn't seem to work. I'll try with an int instead. --JT
- BOOL IS_TAXI_LIGHT_ON(Vehicle vehicle) // 7504C0F113AB50FC 6FC4924A
- BOOL IS_VEHICLE_IN_GARAGE_AREA(char *garageName, Vehicle vehicle) // CEE4490CD57BB3C2 A90EC257
garageName example "Michael - Beverly Hills"
Check garages.meta for more names.
- void SET_VEHICLE_COLOURS(Vehicle vehicle, int colorPrimary, int colorSecondary) // 4F1D4BE3A7F24601 57F24253
colorPrimary & colorSecondary are the paint index for the vehicle.
For a list of valid paint indexes, view: http://pastebin.com/pwHci0xK
- void SET_VEHICLE_FULLBEAM(Vehicle vehicle, BOOL toggle) // 8B7FD87F0DDB421E 9C49CC15
This is not tested - it's just an assumption.
- Nac
seems to always switch to lowbeam, true or false.
- Houri
- void STEER_UNLOCK_BIAS(Vehicle vehicle, BOOL toggle) // 07116E24E9D1929D A59E3DCD
- void SET_VEHICLE_CUSTOM_PRIMARY_COLOUR(Vehicle vehicle, int r, int g, int b) // 7141766F91D15BEA 8DF9F9BC
p1, p2, p3 are RGB values for color (255,0,0 for Red, ect)
- void GET_VEHICLE_CUSTOM_PRIMARY_COLOUR(Vehicle vehicle, int *r, int *g, int *b) // B64CF2CCA9D95F52 1C2B9FEF
- void CLEAR_VEHICLE_CUSTOM_PRIMARY_COLOUR(Vehicle vehicle) // 55E1D2758F34E437 51E1E33D
- BOOL GET_IS_VEHICLE_PRIMARY_COLOUR_CUSTOM(Vehicle vehicle) // F095C0405307B21B D7EC8760
- void SET_VEHICLE_CUSTOM_SECONDARY_COLOUR(Vehicle vehicle, int r, int g, int b) // 36CED73BFED89754 9D77259E
p1, p2, p3 are RGB values for color (255,0,0 for Red, ect)
- void GET_VEHICLE_CUSTOM_SECONDARY_COLOUR(Vehicle vehicle, int *r, int *g, int *b) // 8389CD56CA8072DC 3FF247A2
- void CLEAR_VEHICLE_CUSTOM_SECONDARY_COLOUR(Vehicle vehicle) // 5FFBDEEC3E8E2009 7CE00B29
- BOOL GET_IS_VEHICLE_SECONDARY_COLOUR_CUSTOM(Vehicle vehicle) // 910A32E7AAD2656C 288AD228
Check if Vehicle Secondary is avaliable for customize
- void _SET_VEHICLE_PAINT_FADE(Vehicle veh, float fade) // 3AFDC536C3D01674 8332730C
The parameter fade is a value from 0-1, where 0 is fresh paint.
- float _GET_VEHICLE_PAINT_FADE(Vehicle veh) // A82819CAC9C4C403 D5F1EEE1
The result is a value from 0-1, where 0 is fresh paint.
- void SET_CAN_RESPRAY_VEHICLE(Vehicle vehicle, BOOL state) // 52BBA29D5EC69356 37677590
This is not tested - it's just an assumption.
- Nac
- void _0x33506883545AC0DF(Vehicle vehicle, BOOL p1) // 33506883545AC0DF 54E9EE75
- void _JITTER_VEHICLE(Vehicle vehicle, BOOL p1, float yaw, float pitch, float roll) // C59872A5134879C7 4A46E814
When I called this with what the script was doing, which was -190f for yaw pitch and roll, all my car did was jitter a little. I also tried 0 and 190f. I altered the p1 variable between TRUE and FALSE and didn't see a difference.
This might have something to do with the physbox of the vehicle, but I'm not sure.
- void SET_BOAT_ANCHOR(Vehicle vehicle, BOOL toggle) // 75DBEC174AEEAD10 A3906284
- BOOL _0x26C10ECBDA5D043B(Vehicle vehicle) // 26C10ECBDA5D043B
- void _0xE3EBAAE484798530(Vehicle vehicle, BOOL p1) // E3EBAAE484798530 0ED84792
No observed effect. --JT
- void _0xB28B1FE5BFADD7F5(Vehicle vehicle, BOOL p1) // B28B1FE5BFADD7F5 A739012A
No observed effect. --JT
- void _0xE842A9398079BD82(Vehicle vehicle, float p1) // E842A9398079BD82 66FA450C
- void _0x8F719973E1445BA2(Vehicle vehicle, BOOL p1) // 8F719973E1445BA2 35614622
No observed effect. --JT
- void SET_VEHICLE_SIREN(Vehicle vehicle, BOOL toggle) // F4924635A19EB37D 4AC1EFC7
Activate siren on vehicle (Only works if the vehicle has a siren).
- BOOL IS_VEHICLE_SIREN_ON(Vehicle vehicle) // 4C9BF537BE2634B2 25EB5873
- BOOL _0xB5CC40FBCB586380(Any p0) // B5CC40FBCB586380
- void SET_VEHICLE_STRONG(Vehicle vehicle, BOOL toggle) // 3E8C8727991A8A0B C758D19F
If set to true, vehicle will not take crash damage, but is still susceptible to damage from bullets and explosives
- void REMOVE_VEHICLE_STUCK_CHECK(Any p0) // 8386BFB614D06749 81594917
- void GET_VEHICLE_COLOURS(Vehicle vehicle, int *colorPrimary, int *colorSecondary) // A19435F193E081AC 40D82D88
- BOOL IS_VEHICLE_SEAT_FREE(Vehicle vehicle, int seatIndex) // 22AC59A870E6A669 DAF42B02
Check if a vehicle seat is free.
-1 being the driver seat.
Use GET_VEHICLE_MAX_NUMBER_OF_PASSENGERS(vehicle) - 1 for last seat index.
- Ped GET_PED_IN_VEHICLE_SEAT(Vehicle vehicle, int index) // BB40DD2270B65366 388FDE9A
-1 (driver) <= index < GET_VEHICLE_MAX_NUMBER_OF_PASSENGERS(vehicle)
- Any _0x83F969AA1EE2A664(Vehicle vehicle, Any p1) // 83F969AA1EE2A664 F7C6792D
- BOOL GET_VEHICLE_LIGHTS_STATE(Vehicle vehicle, Any *lightsOn, Any *highbeamsOn) // B91B4C20085BD12F 7C278621
- BOOL IS_VEHICLE_TYRE_BURST(Vehicle vehicle, int wheelID, BOOL p2) // BA291848A0815CA9 48C80210
wheelID used for 4 wheelers seem to be (0, 1, 4, 5)
p2 tends to be 0.
- void SET_VEHICLE_FORWARD_SPEED(Vehicle vehicle, float speed) // AB54A438726D25D5 69880D14
SCALE: Setting the speed to 30 would result in a speed of roughly 60mph, according to speedometer.
- void _0x260BE8F09E326A20(Vehicle vehicle, float p1, Any p2, BOOL p3) // 260BE8F09E326A20 CBC7D3C8
- void _0x37EBBF3117BD6A25(Vehicle vehicle, float p1) // 37EBBF3117BD6A25 943A6CFC
- BOOL SET_PED_ENABLED_BIKE_RINGTONE(Vehicle vehicle, int ringtone) // 57715966069157AD 7FB25568
In the scripts, ringtone is 4.
- BOOL _0x62CA17B74C435651(Any p0) // 62CA17B74C435651 593143B9
- Any _0x375E7FC44F21C8AB(Any p0) // 375E7FC44F21C8AB 70DD5E25
- BOOL _0x89D630CF5EA96D23(Any p0, Any p1) // 89D630CF5EA96D23 FBF5536A
- void _0x6A98C2ECF57FA5D4(Any p0, Any p1) // 6A98C2ECF57FA5D4 20AB5783
- void _0x7C0043FDFF6436BC(Any p0) // 7C0043FDFF6436BC 0F11D01F
- void _0x8AA9180DE2FEDD45(Any p0, BOOL p1) // 8AA9180DE2FEDD45 AE040377
- void _0x0A6A279F3AA4FD70(Any p0, BOOL p1) // 0A6A279F3AA4FD70 4C0E4031
- BOOL _0x634148744F385576(Any p0) // 634148744F385576 6346B7CC
- void _0xE6F13851780394DA(Any p0, float p1) // E6F13851780394DA CCB41A55
- void SET_VEHICLE_TYRE_BURST(Vehicle p0, BOOL p1, BOOL p2, float p3) // EC6A202EE4960385 89D28068
"To burst tyres VEHICLE::SET_VEHICLE_TYRE_BURST(vehicle, 0, true, 1000.0)
to burst all tyres type it 8 times where p1 = 0 to 7. Also, in gtao, it only works if you are the driver, despite creating the sparks fx on your screen" -superninjamofo
- void SET_VEHICLE_DOORS_SHUT(Vehicle vehicle, BOOL closeInstantly) // 781B3D62BB013EF5 BB1FF6E7
Closes all doors of vehicle (Tested in Metro)
- void SET_VEHICLE_TYRES_CAN_BURST(Vehicle vehicle, BOOL value) // EB9DC3C7D8596C46 A198DB54
Allows you to toggle bulletproof tires.
- BOOL GET_VEHICLE_TYRES_CAN_BURST(Vehicle vehicle) // 678B9BB8C3F58FEB 4D76CD2F
This is not tested - it's just an assumption.
- Nac
- void SET_VEHICLE_WHEELS_CAN_BREAK(Vehicle vehicle, BOOL enabled) // 29B18B4FD460CA8F 829ED654
- void SET_VEHICLE_DOOR_OPEN(Vehicle vehicle, int doorIndex, BOOL loose, BOOL openInstantly) // 7C65DAC73C35C862 BB75D38B
doorIndex:
0 = Front Left Door
1 = Front Right Door
2 = Back Left Door
3 = Back Right Door
4 = Hood
5 = Trunk
6 = Back
7 = Back2
- void REMOVE_VEHICLE_WINDOW(Vehicle vehicle, int windowIndex) // A711568EEDB43069 BB8104A3
- void ROLL_DOWN_WINDOWS(Vehicle vehicle) // 85796B0549DDE156 51A16DC6
- void ROLL_DOWN_WINDOW(Vehicle vehicle, int windowIndex) // 7AD9E6CE657D69E3 F840134C
windowIndex:
0 = Front Right Window
1 = Front Left Window
2 = Back Right Window
3 = Back Left Window
- void ROLL_UP_WINDOW(Vehicle vehicle, int windowIndex) // 602E548F46E24D59 83B7E06A
0 = Front Right Window
1 = Front Left Window
2 = Back Right Window
3 = Back Left Window
- void SMASH_VEHICLE_WINDOW(Vehicle vehicle, int index) // 9E5B5E4D2CCD2259 DDD9A8C2
- void FIX_VEHICLE_WINDOW(Vehicle vehicle, int index) // 772282EBEB95E682 6B8E990D
- void _DETACH_VEHICLE_WINDSCREEN(Vehicle vehicleHandle) // 6D645D59FB5F5AD3 CC95C96B
Detaches the vehicle's windscreen.
- void _0xE38CB9D7D39FDBCC(Any p0, float p1, float p2, float p3) // E38CB9D7D39FDBCC FDA7B6CA
- void SET_VEHICLE_LIGHTS(Vehicle vehicle, int p1) // 34E710FF01247C5A E8930226
set's if the vehicle has lights or not.
not an on off toggle.
p1 = 0 ;vehicle normal lights, off then lowbeams, then highbeams
p1 = 1 ;vehicle doesn't have lights, always off
p1 = 2 ;vehicle has always on lights
p1 = 3 ;or even larger like 4,5,... normal lights like =1
note1: when using =2 on day it's lowbeam,highbeam
but at night it's lowbeam,lowbeam,highbeam
note2: when using =0 it's affected by day or night for highbeams don't exist in daytime.
~ Houri ..:)
- void _0xC45C27EF50F36ADC(Any p0, BOOL p1) // C45C27EF50F36ADC 4221E435
- void _0x1FD09E7390A74D54(Any p0, Any p1) // 1FD09E7390A74D54
- void SET_VEHICLE_ALARM(Vehicle vehicle, BOOL state) // CDE5E70C1DDB954C 24877D84
This is not tested - it's just an assumption.
- Nac
Confirm. It sets an alarm.
- Baaa
- void START_VEHICLE_ALARM(Vehicle vehicle) // B8FF7AB45305C345 5B451FF7
- BOOL IS_VEHICLE_ALARM_ACTIVATED(Vehicle vehicle) // 4319E335B71FFF34 F2630A4C
- void SET_VEHICLE_INTERIORLIGHT(Vehicle vehicle, BOOL Toggle) // BC2042F090AF6AD3 9AD1FE1E
- void SET_VEHICLE_LIGHT_MULTIPLIER(Vehicle vehicle, float multiplier) // B385454F8791F57C 48039D6A
multiplier = brightness of head lights.
this value isn't capped afaik.
~ Lynxaa
multiplier = 0.0 no lights
multiplier = 1.0 default game value
~ Houri
- void ATTACH_VEHICLE_TO_TRAILER(Vehicle vehicle, Vehicle trailer, float radius) // 3C7D42D58F770B54 2133977F
- void _0x16B5E274BDE402F8(Any p0, Any p1, float p2, float p3, float p4, float p5, float p6, float p7, float p8, float p9, float p10, float p11) // 16B5E274BDE402F8 12AC1A16
- void _0x374706271354CB18(Any p0, Any p1, float p2) // 374706271354CB18 40C4763F
- void DETACH_VEHICLE_FROM_TRAILER(Vehicle vehicle) // 90532EDF0D2BDD86 B5DBF91D
- BOOL IS_VEHICLE_ATTACHED_TO_TRAILER(Vehicle vehicle) // E7CF3C4F9F489F0C E142BBCC
- void _0x2A8F319B392E7B3F(Any p0, float p1) // 2A8F319B392E7B3F E74E85CE
- void _0x95CF53B3D687F9FA(Any p0) // 95CF53B3D687F9FA 06C47A6F
- void SET_VEHICLE_TYRE_FIXED(Vehicle vehicle, int tyreIndex) // 6E13FC662B882D1D A42EFA6B
tyreIndex = 0 to 4 on normal vehicles
- void SET_VEHICLE_NUMBER_PLATE_TEXT(Vehicle vehicle, char *plateText) // 95A88F0B409CDA47 400F9556
Sets a vehicle's license plate text. 8 chars maximum.
Example:
Ped playerPed = PLAYER::PLAYER_PED_ID();
Vehicle veh = PED::GET_VEHICLE_PED_IS_USING(playerPed);
char* plateText = "KING";
VEHICLE::SET_VEHICLE_NUMBER_PLATE_TEXT(veh, (plateText));
- char *GET_VEHICLE_NUMBER_PLATE_TEXT(Vehicle vehicle) // 7CE1CCB9B293020E E8522D58
Returns the license plate text from a vehicle. 8 chars maximum.
- Any GET_NUMBER_OF_VEHICLE_NUMBER_PLATES() // 4C4D6B2644F458CB D24BC1AE
Returns ant int. For every vehicle I tested, the int was "6" --unknown
This is the number of *types* of licence plates, enumerated below in SET_VEHICLE_NUMBER_PLATE_TEXT_INDEX. --JT
- void SET_VEHICLE_NUMBER_PLATE_TEXT_INDEX(Vehicle vehicle, int plateIndex) // 9088EB5A43FFB0A1 A1A1890E
Plates:
Blue/White - 0
Yellow/black - 1
Yellow/Blue - 2
Blue/White2 - 3
Blue/White3 - 4
Yankton - 5
- int GET_VEHICLE_NUMBER_PLATE_TEXT_INDEX(Vehicle vehicle) // F11BC2DD9A3E7195 499747B6
Returns the PlateType of a vehicle
Blue_on_White_1 = 3,
Blue_on_White_2 = 0,
Blue_on_White_3 = 4,
Yellow_on_Blue = 2,
Yellow_on_Black = 1,
North_Yankton = 5,
- void SET_RANDOM_TRAINS(BOOL unk) // 80D9F74197EA47D9 D461CA7F
- Vehicle CREATE_MISSION_TRAIN(int variation, float x, float y, float z, BOOL direction) // 63C6CCA8E68AE8C8 D4C2EAFD
- void SWITCH_TRAIN_TRACK(int intersectionId, BOOL state) // FD813BB7DB977F20 68BFDD61
- void _0x21973BBF8D17EDFA(Any p0, Any p1) // 21973BBF8D17EDFA D5774FB7
- void DELETE_ALL_TRAINS() // 736A718577F39C7D 83DE7ABF
- void SET_TRAIN_SPEED(Vehicle train, float speed) // AA0BC91BE0B796E3 DFC35E4D
- void SET_TRAIN_CRUISE_SPEED(Vehicle train, float speed) // 16469284DB8C62B5 B507F51D
- void SET_RANDOM_BOATS(BOOL toggle) // 84436EC293B1415F B505BD89
- void SET_GARBAGE_TRUCKS(BOOL toggle) // 2AFD795EEAC8D30D D9ABB0FF
- BOOL DOES_VEHICLE_HAVE_STUCK_VEHICLE_CHECK(Any p0) // 57E4C39DE5EE8470 5D91D9AC
- Any GET_VEHICLE_RECORDING_ID(Any p0, Any *p1) // 21543C612379DB3C 328D601D
- void REQUEST_VEHICLE_RECORDING(Any p0, Any *p1) // AF514CABE74CBF15 91AFEFD9
- BOOL HAS_VEHICLE_RECORDING_BEEN_LOADED(Any p0, Any *p1) // 300D614A4C785FC4 F52CD7F5
- void REMOVE_VEHICLE_RECORDING(Any p0, Any *p1) // F1160ACCF98A3FC8 D3C05B00
- Vector3 _0x92523B76657A517D(Any p0, float p1) // 92523B76657A517D F31973BB
- Vector3 GET_POSITION_OF_VEHICLE_RECORDING_AT_TIME(Any p0, float p1, Any *p2) // D242728AA6F0FBA2 7178558D
- Vector3 _0xF0F2103EFAF8CBA7(Any p0, float p1) // F0F2103EFAF8CBA7 4D1C15C2
- Vector3 GET_ROTATION_OF_VEHICLE_RECORDING_AT_TIME(Any p0, float p1, Any *p2) // 2058206FBE79A8AD D96DEC68
- float GET_TOTAL_DURATION_OF_VEHICLE_RECORDING_ID(Any p0) // 102D125411A7B6E6 7116785E
- Any GET_TOTAL_DURATION_OF_VEHICLE_RECORDING(Any p0, Any p1) // 0E48D1C262390950 5B35EEB7
- float GET_POSITION_IN_RECORDING(Any p0) // 2DACD605FC681475 7DCD644C
- float GET_TIME_POSITION_IN_RECORDING(Any p0) // 5746F3A7AB7FE544 F8C3E4A2
- void START_PLAYBACK_RECORDED_VEHICLE(Any p0, Any p1, Any *p2, BOOL p3) // 3F878F92B3A7A071 CF614CA8
- void START_PLAYBACK_RECORDED_VEHICLE_WITH_FLAGS(Any p0, Any p1, Any *p2, Any p3, Any p4, Any p5) // 7D80FD645D4DA346 4E721AD2
- void _0x1F2E4E06DEA8992B(Any p0, BOOL p1) // 1F2E4E06DEA8992B 01B91CD0
- void STOP_PLAYBACK_RECORDED_VEHICLE(Any p0) // 54833611C17ABDEA AE99C57C
- void PAUSE_PLAYBACK_RECORDED_VEHICLE(Any p0) // 632A689BF42301B1 CCF54912
- void UNPAUSE_PLAYBACK_RECORDED_VEHICLE(Any p0) // 8879EE09268305D5 59060F75
- BOOL IS_PLAYBACK_GOING_ON_FOR_VEHICLE(Any p0) // 1C8A4C2C19E68EEC 61F7650D
- BOOL IS_PLAYBACK_USING_AI_GOING_ON_FOR_VEHICLE(Any p0) // AEA8FD591FAD4106 63022C58
- Any GET_CURRENT_PLAYBACK_FOR_VEHICLE(Any p0) // 42BC05C27A946054 A3F44390
- void SKIP_TO_END_AND_STOP_PLAYBACK_RECORDED_VEHICLE(Any p0) // AB8E2EDA0C0A5883 8DEA18C8
- void SET_PLAYBACK_SPEED(Any p0, float speed) // 6683AB880E427778 684E26E4
- void START_PLAYBACK_RECORDED_VEHICLE_USING_AI(Any p0, Any p1, Any *p2, float p3, Any p4) // 29DE5FA52D00428C 8DE8E24E
- void SKIP_TIME_IN_PLAYBACK_RECORDED_VEHICLE(Any p0, float p1) // 9438F7AD68771A20 CF3EFA4B
- void SET_PLAYBACK_TO_USE_AI(Any p0, Any p1) // A549C3B37EA28131 B536CCD7
- void SET_PLAYBACK_TO_USE_AI_TRY_TO_REVERT_BACK_LATER(Any p0, Any p1, Any p2, BOOL p3) // 6E63860BBB190730 0C8ABAA4
- void _0x5845066D8A1EA7F7(Vehicle vehicle, float p1, float p2, float p3, Any p4) // 5845066D8A1EA7F7 943A58EB
- void _0x796A877E459B99EA(Any p0, float p1, float p2, float p3) // 796A877E459B99EA 5C9F477C
- void _0xFAF2A78061FD9EF4(Any p0, float p1, float p2, float p3) // FAF2A78061FD9EF4 CD83C393
- void _0x063AE2B2CC273588(Any p0, BOOL p1) // 063AE2B2CC273588 2EF8435C
- void EXPLODE_VEHICLE_IN_CUTSCENE(Any p0, BOOL p1) // 786A4EB67B01BF0B A85207B5
- void ADD_VEHICLE_STUCK_CHECK_WITH_WARP(Any p0, float p1, Any p2, BOOL p3, BOOL p4, BOOL p5, Any p6) // 2FA9923062DD396C C8B789AD
- void SET_VEHICLE_MODEL_IS_SUPPRESSED(Hash model, BOOL suppressed) // 0FC2D89AC25A5814 42A08C9B
- Vehicle GET_RANDOM_VEHICLE_IN_SPHERE(float x, float y, float z, float radius, Hash modelHash, int flags) // 386F6CE5BAF6091C 57216D03
Gets a random vehicle in a sphere at the specified position, of the specified radius.
x: The X-component of the position of the sphere.
y: The Y-component of the position of the sphere.
z: The Z-component of the position of the sphere.
radius: The radius of the sphere. Max is 9999.9004.
modelHash: The vehicle model to limit the selection to. Pass 0 for any model.
flags: The bitwise flags that modifies the behaviour of this function.
- Vehicle GET_RANDOM_VEHICLE_FRONT_BUMPER_IN_SPHERE(float p0, float p1, float p2, float p3, int p4, int p5, int p6) // C5574E0AEB86BA68 DCADEB66
- Vehicle GET_RANDOM_VEHICLE_BACK_BUMPER_IN_SPHERE(float p0, float p1, float p2, float p3, int p4, int p5, int p6) // B50807EABE20A8DC D6343F6B
- Vehicle GET_CLOSEST_VEHICLE(float x, float y, float z, float radius, Hash modelHash, int flags) // F73EB622C4F1689B D7E26B2C
Example usage
VEHICLE::GET_CLOSEST_VEHICLE(x, y, z, radius, hash, unknown leave at 70)
x, y, z: Position to get closest vehicle to.
radius: Max radius to get a vehicle.
modelHash: Limit to vehicles with this model. 0 for any.
flags: The bitwise flags altering the function's behaviour.
Does not return police cars.
Does not return helicopters.
- Entity GET_TRAIN_CARRIAGE(Vehicle train, int carriage) // 08AAFD0814722BC3 2544E7A6
- void DELETE_MISSION_TRAIN(Vehicle *train) // 5B76B14AE875C795 86C9497D
- void SET_MISSION_TRAIN_AS_NO_LONGER_NEEDED(Vehicle *train, BOOL unk) // BBE7648349B49BE8 19808560
- void SET_MISSION_TRAIN_COORDS(Vehicle train, float x, float y, float z) // 591CA673AA6AB736 D6D70803
- BOOL IS_THIS_MODEL_A_BOAT(Hash model) // 45A9187928F4B9E3 10F6085C
It's pretty safe to say it's just checking what type of vehicle it is. But as I have mentioned many times before, it's just an assumption.
Edit: Now that I think about it, it could also be a model hash parameter.
- Nac
- BOOL _IS_THIS_MODEL_A_SUBMERSIBLE(Hash model) // 9537097412CF75FE
- BOOL IS_THIS_MODEL_A_PLANE(Hash model) // A0948AB42D7BA0DE 3B3907BB
It's pretty safe to say it's just checking what type of vehicle it is. But as I have mentioned many times before, it's just an assumption.
Edit: Now that I think about it, it could also be a model hash parameter.
- Nac
- BOOL IS_THIS_MODEL_A_HELI(Hash model) // DCE4334788AF94EA 8AF7F568
It's pretty safe to say it's just checking what type of vehicle it is. But as I have mentioned many times before, it's just an assumption.
Edit: Now that I think about it, it could also be a model hash parameter.
- Nac
- BOOL IS_THIS_MODEL_A_CAR(Hash model) // 7F6DB52EEFC96DF8 60E4C22F
It's pretty safe to say it's just checking what type of vehicle it is. But as I have mentioned many times before, it's just an assumption.
Edit: Now that I think about it, it could also be a model hash parameter.
- Nac
- BOOL IS_THIS_MODEL_A_TRAIN(Hash model) // AB935175B22E822B F87DCFFD
It's pretty safe to say it's just checking what type of vehicle it is. But as I have mentioned many times before, it's just an assumption.
Edit: Now that I think about it, it could also be a model hash parameter.
- Nac
- BOOL IS_THIS_MODEL_A_BIKE(Hash model) // B50C0B0CEDC6CE84 7E702CDD
It's pretty safe to say it's just checking what type of vehicle it is. But as I have mentioned many times before, it's just an assumption.
Edit: Now that I think about it, it could also be a model hash parameter.
- Nac
- BOOL IS_THIS_MODEL_A_BICYCLE(Hash model) // BF94DD42F63BDED2 328E6FF5
It's pretty safe to say it's just checking what type of vehicle it is. But as I have mentioned many times before, it's just an assumption.
Edit: Now that I think about it, it could also be a model hash parameter.
- Nac
- BOOL IS_THIS_MODEL_A_QUADBIKE(Hash model) // 39DAC362EE65FA28 C1625277
It's pretty safe to say it's just checking what type of vehicle it is. But as I have mentioned many times before, it's just an assumption.
Edit: Now that I think about it, it could also be a model hash parameter.
- Nac
- void SET_HELI_BLADES_FULL_SPEED(Vehicle vehicle) // A178472EBB8AE60D 033A9408
Equivalent of SET_HELI_BLADES_SPEED(vehicleHandle, 1.0f);
- void SET_HELI_BLADES_SPEED(Vehicle vehicle, float speed) // FD280B4D7F3ABC4D 5C7D4EA9
Sets the speed of the helicopter blades in percentage of the full speed.
vehicleHandle: The helicopter.
speed: The speed in percentage, 0.0f being 0% and 1.0f being 100%.
- void _0x99CAD8E7AFDB60FA(Any p0, float p1, float p2) // 99CAD8E7AFDB60FA 1128A45B
- void SET_VEHICLE_CAN_BE_TARGETTED(Vehicle vehicle, BOOL state) // 3750146A28097A82 64B70B1D
This has not yet been tested - it's just an assumption of what the types could be.
- void _0xDBC631F109350B8C(Any p0, BOOL p1) // DBC631F109350B8C 486C1280
- void SET_VEHICLE_CAN_BE_VISIBLY_DAMAGED(Vehicle vehicle, BOOL state) // 4C7028F78FFD3681 C5D94017
This has not yet been tested - it's just an assumption of what the types could be.
- void _0x1AA8A837D2169D94(Any p0, BOOL p1) // 1AA8A837D2169D94 009AB49E
- void _0x2311DD7159F00582(Any p0, BOOL p1) // 2311DD7159F00582 758C5E2E
- float GET_VEHICLE_DIRT_LEVEL(Vehicle vehicle) // 8F17BC8BA08DA62B FD15C065
Dirt level 0..15
- void SET_VEHICLE_DIRT_LEVEL(Vehicle vehicle, float dirtLevel) // 79D3B596FE44EE8B 2B39128B
dirtLevel = 0 (clean) to 15 (dirty)
- BOOL _IS_VEHICLE_DAMAGED(Vehicle vehicle) // BCDC5017D3CE1E9E DAC523BC
Appears to return true if the vehicle has any damage, including cosmetically.
- BOOL IS_VEHICLE_DOOR_FULLY_OPEN(Vehicle vehicle, int doorIndex) // 3E933CFF7B111C22 C2385B6F
doorIndex:
0 = Front Left Door
1 = Front Right Door
2 = Back Left Door
3 = Back Right Door
4 = Hood
5 = Trunk
6 = Trunk2
- void SET_VEHICLE_ENGINE_ON(Vehicle veh, BOOL engineState, BOOL p3) // 2497C4717C8B881E 7FBC86F1
Engine ON- engineState=true
Engine OFF- engineState=false
p3-currently unknown parameter
------------------------------
(It seems that p3 state it's ignored while inside a vehicle but while outside the vehicle, it will let you set the engine's state only if p3 is true)
(80T)
------------------------------
- void SET_VEHICLE_UNDRIVEABLE(Vehicle vehicle, BOOL state) // 8ABA6AF54B942B95 48D02A4E
This has not yet been tested - it's just an assumption of what the types could be.
- void SET_VEHICLE_PROVIDES_COVER(Any p0, BOOL p1) // 5AFEEDD9BB2899D7 EFC01CA9
- void SET_VEHICLE_DOOR_CONTROL(Vehicle vehicle, int doorIndex, Any p2, float p3) // F2BFA0430F0A0FCB 572DD360
doorIndex:
0 = Front Left Door (driver door)
1 = Front Right Door
2 = Back Left Door
3 = Back Right Door
4 = Hood
5 = Trunk
6 = Trunk2
p3:
It seems it is an angle
- void SET_VEHICLE_DOOR_LATCHED(Any p0, Any p1, BOOL p2, BOOL p3, BOOL p4) // A5A9653A8D2CAF48 4EB7BBFC
- float GET_VEHICLE_DOOR_ANGLE_RATIO(Any p0, Any p1) // FE3F9C29F7B32BD5 0E399C26
- Any _0x218297BF0CFD853B(Any p0, Any p1) // 218297BF0CFD853B
- void SET_VEHICLE_DOOR_SHUT(Vehicle vehicle, int doorIndex, BOOL closeInstantly) // 93D9BD300D7789E5 142606BD
doorIndex:
0 = Front Left Door
1 = Front Right Door
2 = Back Left Door
3 = Back Right Door
4 = Hood
5 = Trunk
6 = Trunk2
- void SET_VEHICLE_DOOR_BROKEN(Vehicle vehicle, int doorIndex, BOOL isBroken) // D4D4F6A4AB575A33 8147FEA7
doorIndex:
0 = Front Right Door
1 = Front Left Door
2 = Back Right Door
3 = Back Left Door
4 = Hood
5 = Trunk
6 = Trunk2
- void SET_VEHICLE_CAN_BREAK(Vehicle vehicle, BOOL Toggle) // 59BF8C3D52C92F66 90A810D1
- BOOL DOES_VEHICLE_HAVE_ROOF(Vehicle vehicle) // 8AC862B0B32C5B80 DB817403
- BOOL IS_BIG_VEHICLE(Vehicle vehicle) // 9F243D3919F442FE 9CDBA8DE
- Any GET_NUMBER_OF_VEHICLE_COLOURS(Vehicle vehicle) // 3B963160CD65D41E F2442EE2
- void SET_VEHICLE_COLOUR_COMBINATION(Vehicle vehicle, int numCombos) // 33E8CD3322E2FE31 A557AEAD
numCombos can be anywhere from 0 to 9 according to the scripts.
- Any GET_VEHICLE_COLOUR_COMBINATION(Vehicle vehicle) // 6A842D197F845D56 77AC1B4C
- void SET_VEHICLE_IS_CONSIDERED_BY_PLAYER(Vehicle vehicle, BOOL isControlled) // 31B927BBC44156CD 14413319
- void _0xBE5C1255A1830FF5(Any p0, BOOL p1) // BE5C1255A1830FF5 A6D8D7A5
- void _0x9BECD4B9FEF3F8A6(Any p0, BOOL p1) // 9BECD4B9FEF3F8A6 ACAB8FF3
- void _0x88BC673CA9E0AE99(Any p0, BOOL p1) // 88BC673CA9E0AE99 F0E5C41D
- void _0xE851E480B814D4BA(Any p0, BOOL p1) // E851E480B814D4BA 2F98B4B7
- void GET_RANDOM_VEHICLE_MODEL_IN_MEMORY(BOOL b0, Hash *p1, int *p2) // 055BF0AC0C34F4FD E2C45631
b0 usually true
p1 returns a random vehicle hash loaded in memory
p2 unsure, maybe returns a different model
- Any GET_VEHICLE_DOOR_LOCK_STATUS(Any p0) // 25BC98A59C2EA962 0D72CEF2
- BOOL IS_VEHICLE_DOOR_DAMAGED(Vehicle veh, int doorID) // B8E181E559464527 4999E3C3
doorID starts at 0, not seeming to skip any numbers. Four door vehicles intuitively range from 0 to 3.
- void _SET_VEHICLE_DOOR_BREAKABLE(Any p0, int doorIndex, BOOL isBreakable) // 2FA133A4A9D37ED8 065B92B3
Keeps Vehicle Doors/Hood/Trunk from breaking off
- BOOL _0x27B926779DEB502D(Any p0, BOOL p1) // 27B926779DEB502D B3A2CC4F
- BOOL IS_VEHICLE_BUMPER_BROKEN_OFF(Any p0, BOOL p1) // 468056A6BB6F3846 AF25C027
- BOOL IS_COP_VEHICLE_IN_AREA_3D(float x1, float x2, float y1, float y2, float z1, float z2) // 7EEF65D5F153E26A FB16C6D1
- BOOL IS_VEHICLE_ON_ALL_WHEELS(Vehicle vehicle) // B104CD1BABF302E2 10089F8E
- Hash GET_VEHICLE_LAYOUT_HASH(Vehicle vehicle) // 28D37D4F71AC5C58 E0B35187
- Any _0xA01BC64DD4BFBBAC(Any p0, Any p1) // A01BC64DD4BFBBAC
- void SET_RENDER_TRAIN_AS_DERAILED(Any p0, BOOL p1) // 317B11A312DF5534 899D9092
- void SET_VEHICLE_EXTRA_COLOURS(Vehicle vehicle, int pearlescentColor, int wheelColor) // 2036F561ADD12E33 515DB2A0
They use the same color indexs as SET_VEHICLE_COLOURS.
- void GET_VEHICLE_EXTRA_COLOURS(Vehicle vehicle, int *pearlescentColor, int *wheelColor) // 3BC4245933A166F7 80E4659B
- void STOP_ALL_GARAGE_ACTIVITY() // 0F87E938BDF29D66 17A0BCE5
- void SET_VEHICLE_FIXED(Vehicle vehicle) // 115722B1B9C14C1C 17469AA1
- void SET_VEHICLE_DEFORMATION_FIXED(Vehicle vehicle) // 953DA1E1B12C0491 DD2920C8
- void _0x206BC5DC9D1AC70A(Any p0, BOOL p1) // 206BC5DC9D1AC70A
- void _0x51BB2D88D31A914B(Vehicle vehicle, BOOL p1) // 51BB2D88D31A914B 88F0F7E7
- void _0x192547247864DFDD(Vehicle vehicle, BOOL p1) // 192547247864DFDD 90D6EE57
- void _0x465BF26AB9684352(Vehicle vehicle, BOOL p1) // 465BF26AB9684352 C40192B5
- void SET_DISABLE_VEHICLE_PETROL_TANK_DAMAGE(Vehicle vehicle, BOOL toggle) // 37C8252A7C92D017 AD3E05F2
- void _0x91A0BD635321F145(Vehicle vehicle, BOOL p1) // 91A0BD635321F145 1784BA1A
- void _0xC50CE861B55EAB8B(Vehicle vehicle, BOOL p1) // C50CE861B55EAB8B 40C323AE
- void _0x6EBFB22D646FFC18(Vehicle vehicle, BOOL p1) // 6EBFB22D646FFC18 847F1304
- void _0x25367DE49D64CF16(Vehicle vehicle, BOOL p1) // 25367DE49D64CF16 CBD98BA1
- void REMOVE_VEHICLES_FROM_GENERATORS_IN_AREA(float x1, float y1, float z1, float x2, float y2, float z2) // 46A1E1A299EC4BBA 42CC15E0
- void SET_VEHICLE_STEER_BIAS(Vehicle vehicle, float value) // 42A8EC77D5150CBE 7357C1EB
- BOOL IS_VEHICLE_EXTRA_TURNED_ON(Any p0, Any p1) // D2E6822DBFD6C8BD 042098B5
- void SET_VEHICLE_EXTRA(Vehicle vehicle, int extraId, int toggle) // 7EE3A3C5E4A40CC9 642D065C
how to toggle:
0 for ON
-1 for OFF
Note: only some vehicle have extras
extra ids are from 1 - 9 depending on the vehicle
- BOOL DOES_EXTRA_EXIST(Vehicle vehicle, int extraId) // 1262D55792428154 409411CC
- void SET_CONVERTIBLE_ROOF(Vehicle vehicle, BOOL p1) // F39C4F538B5124C2 C87B6A51
- void LOWER_CONVERTIBLE_ROOF(Vehicle vehicle, BOOL p1) // DED51F703D0FA83D C5F72EAE
- void RAISE_CONVERTIBLE_ROOF(Vehicle vehicle, BOOL p1) // 8F5FB35D7E88FC70 A4E4CBA3
- int GET_CONVERTIBLE_ROOF_STATE(Vehicle vehicle) // F8C397922FC03F41 1B09714D
- BOOL IS_VEHICLE_A_CONVERTIBLE(Vehicle vehicle, BOOL p1) // 52F357A30698BCCE 6EF54490
- BOOL IS_VEHICLE_STOPPED_AT_TRAFFIC_LIGHTS(Vehicle vehicle) // 2959F696AE390A99 69200FA4
- void SET_VEHICLE_DAMAGE(Vehicle vehicle, float xOffset, float yOffset, float zOffset, float damage, float radius, BOOL p6) // A1DD317EA8FD4F29 21B458B2
Apply damage to vehicle at a location. Location is relative to vehicle model (not world).
Radius of effect damage applied in a sphere at impact location
- float GET_VEHICLE_ENGINE_HEALTH(Vehicle vehicle) // C45D23BAF168AAB8 8880038A
1000 is max health, -4000 is minimum health
Engine begins smoking and losing functionality around 300
Engine catches fire and beings rapidly losing health if health drops below 0
Vehicle does not explode when the engine reaches -4000 health
- void SET_VEHICLE_ENGINE_HEALTH(Vehicle vehicle, float health) // 45F6D8EEF34ABEF1 1B760FB5
- float GET_VEHICLE_PETROL_TANK_HEALTH(Vehicle vehicle) // 7D5DABE888D2D074 E41595CE
1000 is max health
Begins leaking gas at around 650 health
-999.90002441406 appears to be minimum health, although nothing special occurs
- void SET_VEHICLE_PETROL_TANK_HEALTH(Vehicle vehicle, float health) // 70DB57649FA8D0D8 660A3692
- BOOL IS_VEHICLE_STUCK_TIMER_UP(Vehicle vehicle, int p1, int p2) // 679BE1DAF71DA874 2FCF58C1
p1 can be anywhere from 0 to 3 in the scripts. p2 is generally somewhere in the 1000 to 10000 range.
- void RESET_VEHICLE_STUCK_TIMER(Vehicle vehicle, BOOL nullAttributes) // D7591B0065AFAA7A EF2A6016
nullAttributes is always 0 in the scripts. In IDA it calls a second function that's entirely dependent on the 2nd parameter being true, and all it does is set a bunch of offsets to 0.
- BOOL IS_VEHICLE_DRIVEABLE(Vehicle vehicle, BOOL p1) // 4C241E39B23DF959 41A7267A
p1 is always 0 in the scripts.
- void SET_VEHICLE_HAS_BEEN_OWNED_BY_PLAYER(Any p0, BOOL p1) // 2B5F9D2AF1F1722D B4D3DBFB
- void SET_VEHICLE_NEEDS_TO_BE_HOTWIRED(Any p0, BOOL p1) // FBA550EA44404EE6 D8260751
- void _0x9F3F689B814F2599(Any p0, BOOL p1) // 9F3F689B814F2599
- void _0x4E74E62E0A97E901(Any p0, BOOL p1) // 4E74E62E0A97E901
- void START_VEHICLE_HORN(Vehicle vehicle, int duration, Hash mode, BOOL p3) // 9C8C6504B5B63D2C 0DF5ADB3
Sounds the horn for the specified vehicle.
vehicle: The vehicle to activate the horn for.
mode: The hash of "NORMAL" or "HELDDOWN". Can be 0.
duration: The duration to sound the horn, in milliseconds.
p3: unknown.
Note: If a player is in the vehicle, it will only sound briefly.
- void _0x9D44FCCE98450843(Vehicle vehicle, BOOL toggle) // 9D44FCCE98450843 968E5770
If set to TRUE, it seems to suppress door noises and doesn't allow the horn to be continuous. ~Fireboyd78
- void SET_VEHICLE_HAS_STRONG_AXLES(Vehicle vehicle, BOOL toggle) // 92F0CF722BC4202F 0D1CBC65
if true, axles won't bend.
- char *GET_DISPLAY_NAME_FROM_VEHICLE_MODEL(Hash modelHash) // B215AAC32D25D019 EC86DF39
Returns model name of vehicle in all caps. Needs to be displayed through localizing text natives to get proper display name.
- Vector3 GET_VEHICLE_DEFORMATION_AT_POS(Vehicle vehicle, float position1, float position2, float position3) // 4EC6CFBC7B2E9536 ABF02075
The only example I can find of this function in the scripts, is this:
struct _s = VEHICLE::GET_VEHICLE_DEFORMATION_AT_POS(rPtr((A_0) + 4), 1.21f, 6.15f, 0.3f);
- void SET_VEHICLE_LIVERY(Vehicle vehicle, Any livery) // 60BF608F1B8CD1B6 7AD87059
- Any GET_VEHICLE_LIVERY(Vehicle vehicle) // 2BB9230590DA5E8A EC82A51D
- int GET_VEHICLE_LIVERY_COUNT(Vehicle vehicle) // 87B63E25A529D526 FB0CA947
Returns -1 if the vehicle has no livery
- BOOL IS_VEHICLE_WINDOW_INTACT(Vehicle vehicle, int windowNumber) // 46E571A0E20D01F1 AC4EF23D
- BOOL _ARE_ALL_VEHICLE_WINDOWS_INTACT(Vehicle vehicle) // 11D862A3E977A9EF BB619744
Appears to return false if any window is broken.
- BOOL _IS_ANY_VEHICLE_SEAT_EMPTY(Vehicle veh) // 2D34FC3BC4ADB780 648E685A
Returns false if every seat is occupied.
- void RESET_VEHICLE_WHEELS(Any p0, BOOL p1) // 21D2E5662C1F6FED D5FFE779
- BOOL IS_HELI_PART_BROKEN(Any p0, BOOL p1, BOOL p2, BOOL p3) // BC74B4BE25EB6C8A F4E4C439
- float _0xE4CB7541F413D2C5(Any p0) // E4CB7541F413D2C5 F01E2AAB
- float _0xAE8CE82A4219AC8C(Any p0) // AE8CE82A4219AC8C A41BC13D
- float _0xAC51915D27E4A5F7(Any p0) // AC51915D27E4A5F7 8A68388F
- BOOL WAS_COUNTER_ACTIVATED(Any p0, Any p1) // 3EC8BF18AA453FE9 2916D69B
- void SET_VEHICLE_NAME_DEBUG(Vehicle vehicle, char *name) // BFDF984E2C22B94F A712FF5C
NOTE: Debugging functions are not present in the retail version of the game.
- void SET_VEHICLE_EXPLODES_ON_HIGH_EXPLOSION_DAMAGE(Any p0, BOOL p1) // 71B0892EC081D60A 38CC692B
- void _0x3441CAD2F2231923(Any p0, BOOL p1) // 3441CAD2F2231923 C306A9A3
- void _0x2B6747FAA9DB9D6B(Vehicle vehicle, BOOL p1) // 2B6747FAA9DB9D6B 95A9ACCB
- void _0xCFC8BE9A5E1FE575(Any p0, Any p1) // CFC8BE9A5E1FE575 24F873FB
- Any _0x9B0F3DCA3DB0F4CD(Any p0) // 9B0F3DCA3DB0F4CD A6F02670
- BOOL IS_ANY_VEHICLE_NEAR_POINT(float p0, float x, float y, float z) // 61E1DD6125A3EEE6 2867A834
This is not tested - it's just an assumption of what the parameters could be.
- Nac
- void REQUEST_VEHICLE_HIGH_DETAIL_MODEL(Any p0) // A6E9FDCB2C76785E 9DA21956
- void REMOVE_VEHICLE_HIGH_DETAIL_MODEL(Any p0) // 00689CDE5F7C6787 382BE070
- BOOL IS_VEHICLE_HIGH_DETAIL(Any p0) // 1F25887F3C104278 55D41928
- void REQUEST_VEHICLE_ASSET(Hash VehicleHash, int p1) // 81A15811460FAB3A 902B4F06
REQUEST_VEHICLE_ASSET(GET_HASH_KEY(cargobob3)), 3;
vehicle found that have asset's:
cargobob3
submersible
- BOOL HAS_VEHICLE_ASSET_LOADED(Any p0) // 1BBE0523B8DB9A21 8DAAC3CB
- void REMOVE_VEHICLE_ASSET(Any p0) // ACE699C71AB9DEB5 9620E9C6
- void _0xFE54B92A344583CA(Any p0, float p1) // FE54B92A344583CA 88236E22
- void ATTACH_VEHICLE_TO_TOW_TRUCK(Vehicle vehicle, Vehicle towTruck, int p2, float x, float y, float z) // 29A16F8D621C4508 8151571A
- void DETACH_VEHICLE_FROM_TOW_TRUCK(Vehicle vehicle, Vehicle towTruck) // C2DB6B6708350ED8 C666CF33
- BOOL DETACH_VEHICLE_FROM_ANY_TOW_TRUCK(Vehicle vehicle) // D0E9CE05A1E68CD8 3BF93651
- BOOL IS_VEHICLE_ATTACHED_TO_TOW_TRUCK(Vehicle vehicle, Vehicle towTruck) // 146DF9EC4C4B9FD4 9699CFDC
- Entity GET_ENTITY_ATTACHED_TO_TOW_TRUCK(Vehicle towTruck) // EFEA18DCF10F8F75 11EC7844
- Any SET_VEHICLE_AUTOMATICALLY_ATTACHES(Any p0, Any p1, Any p2) // 8BA6F76BC53A1493 4273A8D3
- void _0xF8EBCCC96ADB9FB7(Any p0, float p1, BOOL p2) // F8EBCCC96ADB9FB7 ED23C8A3
- void _0x56B94C6D7127DFBA(Any p0, float p1, BOOL p2) // 56B94C6D7127DFBA B1A52EF7
- void _0x1093408B4B9D1146(Any p0, float p1) // 1093408B4B9D1146 F30C566F
- void _0x30D779DE7C4F6DD3(Any p0, float p1) // 30D779DE7C4F6DD3 A7DF64D7
- void _0x9AA47FFF660CB932(Any p0, float p1) // 9AA47FFF660CB932 DD7936F5
- Any _0xA4822F1CF23F4810(Any p0, Any p1, Any p2, Any p3, Any p4, Any p5, Any p6, Any p7, Any p8) // A4822F1CF23F4810 34E02FCD
- void SET_VEHICLE_BURNOUT(Vehicle vehicle, BOOL toggle) // FB8794444A7D60FB 9B6EF0EA
On accelerating, spins the driven wheels with the others braked, so you don't go anywhere.
- BOOL IS_VEHICLE_IN_BURNOUT(Vehicle vehicle) // 1297A88E081430EB 6632BC12
Returns whether the specified vehicle is currently in a burnout.
@Author Nac
- void SET_VEHICLE_REDUCE_GRIP(Vehicle vehicle, BOOL toggle) // 222FF6A823D122E2 90D3A0D9
Reduces grip significantly so it's hard to go anywhere.
- void SET_VEHICLE_INDICATOR_LIGHTS(Vehicle vehicle, int turnSignal, BOOL toggle) // B5D45264751B7DF0 A6073B5D
Sets the turn signal enabled for a vehicle.
Set turnSignal to 1 for left light, 0 for right light.
- void SET_VEHICLE_BRAKE_LIGHTS(Vehicle vehicle, BOOL Toggle) // 92B35082E0B42F66 6D9BA11E
Set the brake lights to be on or off.
- void SET_VEHICLE_HANDBRAKE(Vehicle vehicle, BOOL Toggle) // 684785568EF26A22 BA729A25
- void _0x48ADC8A773564670() // 48ADC8A773564670 37BC6ACB
- Any _0x91D6DD290888CBAB() // 91D6DD290888CBAB 71D898EF
- void _0x51DB102F4A3BA5E0(BOOL p0) // 51DB102F4A3BA5E0 0B0523B0
- BOOL GET_VEHICLE_TRAILER_VEHICLE(Vehicle vehicle, Vehicle *trailer) // 1CDD6BADC297830D AE84D758
Gets the trailer of a vehicle and puts it into the trailer parameter.
- void _0xCAC66558B944DA67(Any p0, BOOL p1) // CAC66558B944DA67 0B200CE2
- void SET_VEHICLE_RUDDER_BROKEN(Any p0, BOOL p1) // 09606148B6C71DEF 3FAC3CD4
- void _0x1A78AD3D8240536F(Any p0, BOOL p1) // 1A78AD3D8240536F 0858678C
- Any _0x53AF99BAA671CA47(Any p0) // 53AF99BAA671CA47 7D1A0616
- float GET_VEHICLE_MAX_BRAKING(Any p0) // AD7E85FC227197C4 03B926F6
- float GET_VEHICLE_MAX_TRACTION(Any p0) // A132FB5370554DB0 7E5A1587
- float GET_VEHICLE_ACCELERATION(Any p0) // 5DD35C8D074E57AE 00478321
- float _GET_VEHICLE_MAX_SPEED(Hash modelHash) // F417C2502FFFED43 8F291C4A
- float GET_VEHICLE_MODEL_MAX_BRAKING(Any p0) // DC53FD41B4ED944C 7EF02883
- float _0xBFBA3BA79CFF7EBF(Any p0) // BFBA3BA79CFF7EBF F3A7293F
- float GET_VEHICLE_MODEL_MAX_TRACTION(Any p0) // 539DE94D44FDFD0D 7F985597
- float GET_VEHICLE_MODEL_ACCELERATION(Any p0) // 8C044C5C84505B6A 29CB3537
Returns the acceleration of the specified model.
Note: Notice that they have added "MODEL" to this definition, which possibly means that we should be passing a parameter with a model hash instead of a vehicle handle.
p0: The hash of the model.
@Author Nac
- float _0x53409B5163D5B846(Any p0) // 53409B5163D5B846 37FBA7BC
- float _0xC6AD107DDC9054CC(Any p0) // C6AD107DDC9054CC 95BB67EB
- float _0x5AA3F878A178C4FC(Any p0) // 5AA3F878A178C4FC 87C5D271
- Any _0x00C09F246ABEDD82(Any p0) // 00C09F246ABEDD82 CE67162C
- float GET_VEHICLE_CLASS_MAX_TRACTION(Any p0) // DBC86D85C5059461 5B4FDC16
- float GET_VEHICLE_CLASS_MAX_AGILITY(Any p0) // 4F930AD022D6DE3B 45F2BD83
- float GET_VEHICLE_CLASS_MAX_ACCELERATION(Any p0) // 2F83E7E45D9EA7AE 3E220A9B
- float GET_VEHICLE_CLASS_MAX_BRAKING(Any p0) // 4BF54C16EC8FEC03 D08CC1A5
- Any _0x2CE544C68FB812A0(float p0, float p1, float p2, float p3, float p4, BOOL p5) // 2CE544C68FB812A0 D6685803
- BOOL _0x1033371FC8E842A7(Any p0) // 1033371FC8E842A7 0C0332A6
- void _0x87E7F24270732CB1(Any p0) // 87E7F24270732CB1 6574041D
- void _0x3556041742A0DC74(Any p0) // 3556041742A0DC74 F8EC5751
- BOOL IS_VEHICLE_SEARCHLIGHT_ON(Vehicle vehicle) // C0F97FCE55094987 ADAF3513
Possibly: Returns whether the searchlight (found on police vehicles) is toggled on.
@Author Nac
- void SET_VEHICLE_SEARCHLIGHT(Any p0, BOOL p1, BOOL p2) // 14E85C5EE7A4D542 E2C0DD8A
- BOOL _0x639431E895B9AA57(Any p0, Any p1, Any p2, BOOL p3, BOOL p4) // 639431E895B9AA57 AB0E79EB
- BOOL CAN_SHUFFLE_SEAT(Any p0, Any p1) // 30785D90C956BF35 B3EB01ED
- int GET_NUM_MOD_KITS(Vehicle vehicle) // 33F2E3FE70EAAE1D E4903AA0
- void SET_VEHICLE_MOD_KIT(Vehicle vehicle, int modKit) // 1F2AA07F00B3217A B8132158
Set modKit to 0 if you plan to call SET_VEHICLE_MOD. That's what the game does.
- int GET_VEHICLE_MOD_KIT(Vehicle vehicle) // 6325D1A044AE510D 9FE60927
- int GET_VEHICLE_MOD_KIT_TYPE(Vehicle vehicle) // FC058F5121E54C32 E5F76765
- int GET_VEHICLE_WHEEL_TYPE(Vehicle vehicle) // B3ED1BFB4BE636DC DA58D7AE
Returns an int
Wheel Types:
0: Sport
1: Muscle
2: Lowrider
3: SUV
4: Offroad
5: Tuner
6: Bike Wheels
7: High End
Tested in Los Santos Customs
- void SET_VEHICLE_WHEEL_TYPE(Vehicle vehicle, int WheelType) // 487EB21CC7295BA1 64BDAAAD
0: Sport
1: Muscle
2: Lowrider
3: SUV
4: Offroad
5: Tuner
6: Bike Wheels
7: High End
- Any GET_NUM_MOD_COLORS(Any p0, BOOL p1) // A551BE18C11A476D 73722CD9
- void SET_VEHICLE_MOD_COLOR_1(Vehicle vehicle, int paintType, int color, int p3) // 43FEB945EE7F85B8 CBE9A54D
paintType:
0: Normal
1: Metallic
2: Pearl
3: Matte
4: Metal
5: Chrome
color: number of the color
- void SET_VEHICLE_MOD_COLOR_2(Vehicle vehicle, int paintType, int color) // 816562BADFDEC83E C32613C2
Changes the secondary paint type and color
paintType:
0: Normal
1: Metallic
2: Pearl
3: Matte
4: Metal
5: Chrome
color: number of the color
- void GET_VEHICLE_MOD_COLOR_1(Vehicle vehicle, int *paintType, int *color, int *p3) // E8D65CA700C9A693 E625510A
- void GET_VEHICLE_MOD_COLOR_2(Vehicle vehicle, int *paintType, int *color) // 81592BE4E3878728 9B76BB8E
- Any _0xB45085B721EFD38C(Any p0, BOOL p1) // B45085B721EFD38C 9A0840FD
- Any _0x4967A516ED23A5A1(Any p0) // 4967A516ED23A5A1 9BDC0B49
- BOOL _0x9A83F5F9963775EF(Any p0) // 9A83F5F9963775EF 112D637A
- void SET_VEHICLE_MOD(Vehicle vehicle, int modType, int modIndex, BOOL variation) // 6AF0636DDEDCB6DD B52E5ED5
Sets the vehicle mod.
The vehicle must have a mod kit first.
Any out of range ModIndex is stock.
#Mod Type
Spoilers - 0
Front Bumper - 1
Rear Bumper - 2
Side Skirt - 3
Exhaust - 4
Frame - 5
Grille - 6
Hood - 7
Fender - 8
Right Fender - 9
Roof - 10
Engine - 11
Brakes - 12
Transmission - 13
Horns - 14
Suspension - 15
Armor - 16
Front Wheels - 23
Back Wheels - 24 //only for motocycles
Variation is only used for Wheels(23 and 24), setting to true will give the vehicle custom wheels
- int GET_VEHICLE_MOD(Vehicle vehicle, int modType) // 772960298DA26FDB DC520069
- BOOL GET_VEHICLE_MOD_VARIATION(Vehicle vehicle, int modType) // B3924ECD70E095DC C1B92003
Only used for wheels(ModType = 23/24) Returns true if the wheels are custom wheels
- int GET_NUM_VEHICLE_MODS(Vehicle vehicle, int modType) // E38E9162A2500646 8A814FF9
Returns how many possible mods a vehicle has for a given mod type
- void REMOVE_VEHICLE_MOD(Vehicle vehicle, int modType) // 92D619E420858204 9CC80A43
- void TOGGLE_VEHICLE_MOD(Vehicle vehicle, int modType, BOOL toggle) // 2A1F4F37F95BAD08 D095F811
Toggles:
UNK17 - 17
Turbo - 18
UNK19 - 19
Tire Smoke - 20
UNK21 - 21
Xenon Headlights - 22
- BOOL IS_TOGGLE_MOD_ON(Vehicle vehicle, int modType) // 84B233A8C8FC8AE7 F0E1689F
- char *GET_MOD_TEXT_LABEL(Vehicle vehicle, int modType, int modValue) // 8935624F8C5592CC 0BA39CA7
Returns the text label of a mod type for a given vehicle
Use _GET_LABEL_TEXT to get the part name in the game's language
- char *GET_MOD_SLOT_NAME(Vehicle vehicle, int modType) // 51F0FEB9F6AE98C0 5E113483
Returns the name for the type of vehicle mod(Armour, engine etc)
- char *GET_LIVERY_NAME(Vehicle vehicle, char *livery) // B4C7A93837C91A1F ED80B5BE
I would have thought that the params would be Vehicle vehicle and int liveryIndex but that doesn't seem to get anything other than a blank string out of this native. Tried both normal and localized text displaying.
EDIT FROM SOMEONE ELSE: The 2nd parameter is the return from GET_VEHICLE_LIVERY.
- Any GET_VEHICLE_MOD_MODIFIER_VALUE(Any p0, Any p1, Any p2) // 90A38E9838E0A8C1 73AE5505
- Any _0x4593CF82AA179706(Any p0, Any p1, Any p2) // 4593CF82AA179706 94850968
- void PRELOAD_VEHICLE_MOD(Any p0, Any p1, Any p2) // 758F49C24925568A 6EA5F4A8
- BOOL HAS_PRELOAD_MODS_FINISHED(Any p0) // 06F43E5175EB6D96 A8A0D246
- void RELEASE_PRELOAD_MODS(Any p0) // 445D79F995508307 D442521F
- void SET_VEHICLE_TYRE_SMOKE_COLOR(Vehicle vehicle, int r, int g, int b) // B5BA80F839791C0F 3EDEC0DB
Sets the tire smoke's color of this vehicle.
p0: The vehicle that is the target of this method.
p1: The red level in the RGB color code.
p2: The green level in the RGB color code.
p3: The blue level in the RGB color code.
@Author Nac
setting r,g,b to 0 will give the car independance day tyre smoke
- void GET_VEHICLE_TYRE_SMOKE_COLOR(Vehicle vehicle, int *r, int *g, int *b) // B635392A4938B3C3 75280015
- void SET_VEHICLE_WINDOW_TINT(Vehicle vehicle, int tint) // 57C51E6BAD752696 497C8787
Tint:
None - 0
Pure Black - 1
Dark Smoke - 2
Light Smoke - 3
Stock - 4
Limo - 5
Green - 6
- int GET_VEHICLE_WINDOW_TINT(Vehicle vehicle) // 0EE21293DAD47C95 13D53892
- int GET_NUM_VEHICLE_WINDOW_TINTS() // 9D1224004B3A6707 625C7B66
- void GET_VEHICLE_COLOR(Vehicle vehicle, int *r, int *g, int *b) // F3CC740D36221548 03BC8F1B
- Any _0xEEBFC7A7EFDC35B4(Any p0) // EEBFC7A7EFDC35B4 749DEEA2
- Any GET_VEHICLE_CAUSE_OF_DESTRUCTION(Any p0) // E495D1EF4C91FD20 7F8C20DD
- BOOL _IS_HEADLIGHT_L_BROKEN(Vehicle vehicle) // 5EF77C9ADD3B11A3 A0777943
From the driver's perspective, is the left headlight broken.
- BOOL _IS_HEADLIGHT_R_BROKEN(Vehicle vehicle) // A7ECB73355EB2F20 F178390B
From the driver's perspective, is the right headlight broken.
- void _SET_VEHICLE_ENGINE_POWER_MULTIPLIER(Vehicle vehicle, float value) // 93A3996368C94158 E943B09C
Vehicle power multiplier.
Does not have to be looped each frame. Can be set once.
- void _0x1CF38D529D7441D9(Any p0, BOOL p1) // 1CF38D529D7441D9 DF594D8D
- void _0x1F9FB66F3A3842D2(Any p0, BOOL p1) // 1F9FB66F3A3842D2 4D840FC4
- Any _0x54B0F614960F4A5F(float p0, float p1, float p2, float p3, float p4, float p5, float p6) // 54B0F614960F4A5F 5AB26C2B
- void _0xE30524E1871F481D(Any p0) // E30524E1871F481D EF05F807
- BOOL _0x291E373D483E7EE7(Any p0) // 291E373D483E7EE7 D656E7E5
- void _SET_VEHICLE_ENGINE_TORQUE_MULTIPLIER(Vehicle vehicle, float value) // B59E4BD37AE292DB 642DA5AA
<1.0 - Decreased torque
=1.0 - Default torque
>1.0 - Increased torque
Negative values will cause the vehicle to go backwards instead of forwards while accelerating.
Does this need to be looped or can it be set once for a vehicle?
- void _0x0AD9E8F87FF7C16F(Any p0, BOOL p1) // 0AD9E8F87FF7C16F 04F5546C
- void SET_VEHICLE_IS_WANTED(Vehicle p0, BOOL p1) // F7EC25A3EBEEC726 DAA388E8
Sets the wanted state of this vehicle.
p0: The vehicle that is the target of this method.
p1: The wanted state of this vehicle.
@Author Nac
- void _0xF488C566413B4232(Any p0, float p1) // F488C566413B4232 A25CCB8C
- void _0xC1F981A6F74F0C23(Any p0, BOOL p1) // C1F981A6F74F0C23 00966934
- void _0x0F3B4D4E43177236(Any p0, BOOL p1) // 0F3B4D4E43177236 113DF5FD
- float _0x6636C535F6CC2725(Any p0) // 6636C535F6CC2725 7C8D6464
- void DISABLE_PLANE_AILERON(Any p0, BOOL p1, BOOL p2) // 23428FC53C60919C 7E84C45C
- BOOL _IS_VEHICLE_ENGINE_ON(Vehicle vehicle) // AE31E7DF9B5B132E 7DC6D022
Returns true when in a vehicle, false whilst entering/exiting.
- void _0x1D97D1E3A70A649F(Any p0, BOOL p1) // 1D97D1E3A70A649F A03E42DF
- void _0x9CFA4896C3A53CBB(Vehicle vehicle, float x, float y) // 9CFA4896C3A53CBB 15D40761
Works on bike only
- void _0xAB04325045427AAE(Any p0, BOOL p1) // AB04325045427AAE 1984F88D
- void _0xCFD778E7904C255E(Any p0) // CFD778E7904C255E 3FBE904F
- void _0xACFB2463CC22BED2(Any p0) // ACFB2463CC22BED2 D1B71A25
- Any _0xB2D06FAEDE65B577() // B2D06FAEDE65B577 FEB0C0C8
- void _0xE01903C47C7AC89E() // E01903C47C7AC89E
- void _0x02398B627547189C(Any p0, BOOL p1) // 02398B627547189C 08CD58F9
- void _0xB893215D8D4C015B(Any p0, Any p1) // B893215D8D4C015B 8C4B63E2
- void SET_VEHICLE_LOD_MULTIPLIER(Any p0, float p1) // 93AE6A61BE015BF1 569E5AE3
- void _0x428BACCDF5E26EAD(Any p0, BOOL p1) // 428BACCDF5E26EAD 1604C2F5
- Any _0x42A4BEB35D372407(Any p0) // 42A4BEB35D372407 8CDB0C09
- Any _0x2C8CBFE1EA5FC631(Any p0) // 2C8CBFE1EA5FC631 ABC99E21
- void _0x4D9D109F63FEE1D4(Any p0, BOOL p1) // 4D9D109F63FEE1D4 900C878C
- void _0x279D50DE5652D935(Any p0, BOOL p1) // 279D50DE5652D935 B3200F72
- void _0xE44A982368A4AF23(Any p0, Any p1) // E44A982368A4AF23 BAE491C7
- void _0xF25E02CB9C5818F8() // F25E02CB9C5818F8 F0E59BC1
- void _0xBC3CCA5844452B06(float p0) // BC3CCA5844452B06 929801C6
- void SET_VEHICLE_SHOOT_AT_TARGET(Any p0, Any p1, float p2, float p3, float p4) // 74CD9A9327A282EA 2343FFDF
- BOOL _GET_VEHICLE_OWNER(Vehicle vehicle, Entity *entity) // 8F5EBAB1F260CFCE 4A557117
Originally called "_SET_VEHICLE_OWNER", but this actually seems to GET the "owner", not set it.
The resulting entity can be a Vehicle or Ped.
- void _0x97CE68CB032583F0(Vehicle vehicle, BOOL p1) // 97CE68CB032583F0 E0FC6A32
- void _0x182F266C2D9E2BEB(Any p0, float p1) // 182F266C2D9E2BEB 7D0DE7EA
- Any GET_VEHICLE_PLATE_TYPE(Vehicle vehicle) // 9CCC9525BF2408E0 65CA9286
- void TRACK_VEHICLE_VISIBILITY(Any p0) // 64473AEFDCF47DCA 78122DC1
- BOOL IS_VEHICLE_VISIBLE(Vehicle vehicle) // AA0A52D24FB98293 7E0D6056
- void SET_VEHICLE_GRAVITY(Vehicle vehicle, BOOL Toggle) // 89F149B6131E57DA 07B2A6DC
- void _0xE6C0C80B8C867537(BOOL p0) // E6C0C80B8C867537 D2B8ACBD
- Any _0x36492C2F0D134C56(Any p0) // 36492C2F0D134C56 A4A75FCF
- void _0x06582AFF74894C75(Any p0, BOOL p1) // 06582AFF74894C75 50F89338
- void _0xDFFCEF48E511DB48(Any p0, BOOL p1) // DFFCEF48E511DB48 EB7D7C27
- BOOL _0x8D474C8FAEFF6CDE(Any p0) // 8D474C8FAEFF6CDE 5EB00A6A
- void SET_VEHICLE_ENGINE_CAN_DEGRADE(Vehicle vehicle, BOOL toggle) // 983765856F2564F9 081DAC12
- void _0xF0E4BA16D1DB546C(Vehicle vehicle, int p1, int p2) // F0E4BA16D1DB546C 5BD8D82D
adds some kind of shadow to the vehicle
- void _0xF87D9F2301F7D206(Any p0) // F87D9F2301F7D206 450AD03A
- BOOL _0x4198AB0022B15F87(Any p0) // 4198AB0022B15F87 BD085DCA
- BOOL _0x755D6D5267CBBD7E(Any p0) // 755D6D5267CBBD7E ABBDD5C6
- void _0x0CDDA42F9E360CA6(Any p0, BOOL p1) // 0CDDA42F9E360CA6 9B581DE7
- BOOL IS_VEHICLE_STOLEN(Vehicle vehicle) // 4AF9BD80EEBEB453 20B61DDE
- void SET_VEHICLE_IS_STOLEN(Vehicle vehicle, BOOL isStolen) // 67B2C79AA7FF5738 70912E42
- void _0xAD2D28A1AFDFF131(Any p0, float p1) // AD2D28A1AFDFF131 ED159AE6
- BOOL _0x5991A01434CE9677(Any p0) // 5991A01434CE9677 AF8CB3DF
- void _0xB264C4D2F2B0A78B(Any p0) // B264C4D2F2B0A78B 45F72495
- void DETACH_VEHICLE_FROM_CARGOBOB(Vehicle vehicle, Vehicle cargobob) // 0E21D3DF1051399D 83D3D331
- BOOL DETACH_VEHICLE_FROM_ANY_CARGOBOB(Vehicle vehicle) // ADF7BE450512C12F 50E0EABE
- BOOL IS_VEHICLE_ATTACHED_TO_CARGOBOB(Vehicle vehicle, Vehicle cargobob) // D40148F22E81A1D9 5DEEC76C
- Vehicle GET_VEHICLE_ATTACHED_TO_CARGOBOB(Vehicle cargobob) // 873B82D42AC2B9E5 301A1D24
Returns attached vehicle (Vehicle in parameter must be cargobob)
- void ATTACH_VEHICLE_TO_CARGOBOB(Vehicle vehicle, Vehicle cargobob, int p2, float x, float y, float z) // 4127F1D84E347769 607DC9D5
- void _0x571FEB383F629926(Any p0, BOOL p1) // 571FEB383F629926
- Vector3 _0xCBDB9B923CACC92D(Any p0) // CBDB9B923CACC92D
- BOOL _0x1821D91AD4B56108(Any p0) // 1821D91AD4B56108 AF769B81
- void _0x7BEB0C7A235F6F3B(Any p0) // 7BEB0C7A235F6F3B 4D3C9A99
- void _0x9768CF648F54C804(Any p0) // 9768CF648F54C804 A8211EE9
- void _0x877C1EAEAC531023(Any p0, float p1, float p2, BOOL p3) // 877C1EAEAC531023 3A8AB081
- void _0xCF1182F682F65307(Any p0, float p1) // CF1182F682F65307
- BOOL _0x6E08BF5B3722BAC9(Any p0) // 6E08BF5B3722BAC9
- void _0x9A665550F8DA349B(Any p0, BOOL p1) // 9A665550F8DA349B
- void _0xBCBFCD9D1DAC19E2(Any p0, float p1) // BCBFCD9D1DAC19E2
- void _0xA17BAD153B51547E(Any p0, float p1) // A17BAD153B51547E
- void _0x66979ACF5102FD2F(Any p0, float p1) // 66979ACF5102FD2F
- void _0x6D8EAC07506291FB(Any p0, float p1) // 6D8EAC07506291FB
- void _0xED8286F71A819BAA(Any p0, float p1) // ED8286F71A819BAA
- void _0x685D5561680D088B(Any p0, float p1) // 685D5561680D088B
- void _0xE301BD63E9E13CF0(Any p0, Any p1) // E301BD63E9E13CF0
- void _0x9BDDC73CC6A115D4(Any p0, BOOL p1, BOOL p2) // 9BDDC73CC6A115D4
- void _0x56EB5E94318D3FB6(Any p0, BOOL p1) // 56EB5E94318D3FB6
- BOOL DOES_VEHICLE_HAVE_WEAPONS(Vehicle vehicle) // 25ECB9F8017D98E0 B2E1E1FB
- void _0x2C4A1590ABF43E8B(Any p0, BOOL p1) // 2C4A1590ABF43E8B 2EC19A8B
- void DISABLE_VEHICLE_WEAPON(BOOL disabled, Hash weaponHash, Vehicle vehicle, Ped owner) // F4FC6A6F67D8D856 A688B7D1
- void _0xE05DD0E9707003A3(Any p0, BOOL p1) // E05DD0E9707003A3 123E5B90
- void _0x21115BCD6E44656A(Any p0, BOOL p1) // 21115BCD6E44656A EBC225C1
- int GET_VEHICLE_CLASS(Vehicle vehicle) // 29439776AAA00A62 C025338E
Returns an int
Vehicle Classes:
0: Compacts
1: Sedans
2: SUVs
3: Coupes
4: Muscle
5: Sports Classics
6: Sports
7: Super
8: Motorcycle
9: Off-road
10: Industrial
11: Utility
12: Vans/Pickups
13: Bicycle
14: Boats
15: Helicopter
16: Airplane
17: Service
18: Emergency
19: Military
20: Commercial
- int GET_VEHICLE_CLASS_FROM_NAME(Hash modelHash) // DEDF1C8BD47C2200 EA469980
- void SET_PLAYERS_LAST_VEHICLE(Vehicle vehicle) // BCDF8BAF56C87B6A DE86447D
- void _0x300504B23BD3B711(Any p0, BOOL p1) // 300504B23BD3B711 5130DB1E
- void _0xE5810AC70602F2F5(Any p0, float p1) // E5810AC70602F2F5 B6BE07E0
- void _0x068F64F2470F9656(Any p0, BOOL p1) // 068F64F2470F9656 4BB5605D
- void _0xB8FBC8B1330CA9B4(Any p0, BOOL p1) // B8FBC8B1330CA9B4 51E0064F
- void _0x10655FAB9915623D(Any p0, Any p1) // 10655FAB9915623D
- void _0x79DF7E806202CE01(Any p0, Any p1) // 79DF7E806202CE01 AEF9611C
- void _0x9007A2F21DC108D4(Any p0, float p1) // 9007A2F21DC108D4 585E49B6
- void _0x6E0859B530A365CC(Any p0, float p1) // 6E0859B530A365CC 6E67FD35
- void SET_VEHICLE_FRICTION_OVERRIDE(Vehicle vehicle, float friction) // 1837AF7C627009BA 32AFD42E
- void SET_VEHICLE_MAX_STR_TRAP(Any p0, BOOL p1) // A37B9A517B133349 670913A4
- BOOL _0xF78F94D60248C737(Any p0, BOOL p1) // F78F94D60248C737
- void GET_VEHICLE_DEFORMATION_GET_TREE(Any p0, float p1) // A46413066687A328 98A10A86
looks like hash collision
- void _0x5E569EC46EC21CAE(Any p0, BOOL p1) // 5E569EC46EC21CAE BC649C49
- void _0x6D6AF961B72728AE(Any p0) // 6D6AF961B72728AE 8DD9AA0C
- BOOL DOES_VEHICLE_EXIST_WITH_DECORATOR(Any *p0) // 956B409B984D9BF7 39E68EDD
- void _0x41062318F23ED854(Any p0, BOOL p1) // 41062318F23ED854 AA8BD440
- void _0xB5C51B5502E85E83(Vehicle vehicle, Any p1, Any p2) // B5C51B5502E85E83
- void _0x500873A45724C863(Vehicle vehicle, Any p1) // 500873A45724C863
- void _0xB055A34527CB8FD7(Vehicle vehicle, BOOL p1) // B055A34527CB8FD7
- void _0xF796359A959DF65D(BOOL p0) // F796359A959DF65D B5CC548B
- void _SET_VEHICLE_NEON_LIGHTS_COLOUR(Vehicle vehicle, int r, int g, int b) // 8E0A582209A62695
Sets the color of the neon lights of the specified vehicle.
r: Percentage red between 0 and 255.
g: Percentage green between 0 and 255.
b: Percentage blue between 0 and 255.
- void _GET_VEHICLE_NEON_LIGHTS_COLOUR(Vehicle vehicle, int *r, int *g, int *b) // 7619EEE8C886757F
- void _SET_VEHICLE_NEON_LIGHT_ENABLED(Vehicle vehicle, int index, BOOL toggle) // 2AA720E4287BF269
Sets the neon lights of the specified vehicle on/off.
Indices:
0 = Left
1 = Right
2 = Front
3 = Back
- BOOL _IS_VEHICLE_NEON_LIGHT_ENABLED(Vehicle vehicle, int index) // 8C4B92553E4766A5
indices:
0 = Left
1 = Right
2 = Front
3 = Back
- void _0x35E0654F4BAD7971(BOOL p0) // 35E0654F4BAD7971
- void _0xB088E9A47AE6EDD5(Vehicle vehicle, BOOL p1) // B088E9A47AE6EDD5
- void _0xDBA3C090E3D74690(Vehicle vehicle) // DBA3C090E3D74690
- float GET_VEHICLE_BODY_HEALTH(Vehicle vehicle) // F271147EB7B40F12 2B2FCC28
Seems related to vehicle health, like the one in IV.
Max 1000, min 0.
Vehicle does not necessarily explode or become undrivable at 0.
- void SET_VEHICLE_BODY_HEALTH(Vehicle vehicle, float value) // B77D05AC8C78AADB 920C2517
- void _0xDF7E3EEB29642C38(Vehicle vehicle, Any p1, Any p2) // DF7E3EEB29642C38
- float _0x53952FD2BAA19F17(Vehicle vehicle) // 53952FD2BAA19F17 B73A1486
- void _0x84FD40F56075E816(float p0) // 84FD40F56075E816
- void _0xA7DCDF4DED40A8F4(Vehicle vehicle, BOOL p1) // A7DCDF4DED40A8F4
- float _0xB8EF61207C2393A9(Any p0) // B8EF61207C2393A9
If p0 a vehicle handle, it seems to return 0 if you're entering a vehicle or sitting in a vehicle otherwise it will return -1.
- BOOL _0xD4C4642CB7F50B5D(Any p0) // D4C4642CB7F50B5D
- void _0xC361AA040D6637A8(Any p0, BOOL p1) // C361AA040D6637A8
- void _0x99C82F8A139F3E4E(Any p0, BOOL p1) // 99C82F8A139F3E4E
- void _0xE16142B94664DEFD(Any p0, BOOL p1) // E16142B94664DEFD